
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package be.ac.ua.pats.thesisrobotica.robot.RR.sensors.utils;

/**
 *
 * @author Admin
 */
public abstract class InterrupterThread extends Thread  {

    public Thread thread;
    boolean blocked = true;
    
    public InterrupterThread(Thread thread) {
        this.thread = thread;
    }

    public void interruptThread() {
        thread.interrupt();
    }

    public boolean isBlocked() {
        return blocked;
    }

    public void setBlocked(boolean blocked) {
        this.blocked = blocked;
    }
}
